﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Query>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
Enquiry Details
</asp:Content>

<asp:Content ID="javascript" ContentPlaceHolderID="Javascript" runat="server">
    
    <script type="text/javascript">
        $(document).ready(function() {
            $("ul.tabs").tabs("div.panes > div", { event: 'mouseover', initialIndex: 1 }); 
        });
    </script>
</asp:Content>

<asp:Content ID="ContentHeader" ContentPlaceHolderID="ContentHeader" runat="server">
    Details of: <%= Html.DisplayTextFor(m => m.QueryType)%> #<%= Html.DisplayTextFor(m => m.QueryId)%>
</asp:Content>  

<asp:Content ID="ContentSubNav" ContentPlaceHolderID="ContentSubNav" runat="server">
    <li class=""><%= Html.ActionLink("Create Enquiry", "Create", "Enquiry")%></li>
    <li class=""><%= Html.ActionLink("Open Enquiries", "Index", "Enquiry")%></li>
    <li class=""><%= Html.ActionLink("Completed Enquiries", "Completed", "Enquiry")%></li>
    <%--<li class=""><%= Html.ActionLink("Pending Compensation", "Pending", "Enquiry")%></li>--%>
    <li class=""><%= Html.ActionLink("Approved Compensation", "Approved", "Enquiry")%></li>
    <li class=""><%= Html.ActionLink("Declined Compensation", "Declined", "Enquiry")%></li>
    <li class=""><%= Html.ActionLink("Complaints Alert", "ComplaintsAlert", "Enquiry")%></li>  
    
    </asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <%--<%= Html.ActionLink("Edit this query", "Edit", new { id = query.QueryId })%>--%>
    
    <%--<% Html.EnableClientValidation(); %>--%>
<a href="<%=Request.UrlReferrer != null ? Request.UrlReferrer.ToString() : Url.Action("Index")%>"><< Go back</a> 
    <% using (Html.BeginForm("Create", "Enquiry", FormMethod.Post, new {id = "EnquiryForm",  @class = "faux_form" })){%> 

        <ul class="tabs">
		    <li><a href="#tabs-1">Contact Details</a></li>
		    <li><a href="#tabs-2">Query Details</a></li>
		    <li><a href="#tabs-3">Resolution</a></li>
		</ul>    
		<div class="panes">
	        <div class="pane">
                <div class="formRegion"> 
                    <div class="clearfix">
                        <%= Html.LabelFor(m => m.FirstName)%>
                        <%= Html.DisplayTextFor(m => m.FirstName) %>
                    </div>
                    <div class="clearfix">
                        <%= Html.LabelFor(m => m.LastName)%>
                        <%= Html.DisplayTextFor(m => m.LastName)%>
                    </div>
                    <div class="clearfix">
                        <%= Html.LabelFor(m => m.Email)%>
                        <%= Html.DisplayTextFor(m => m.Email) %>
                    </div>
                    <div class="clearfix">
                        <%= Html.LabelFor(m => m.Telephone)%>
                        <%= Html.DisplayTextFor(m => m.Telephone) %>
                    </div>
                </div>
                <div class="formRegion">
                    <div class="clearfix">
                        <%= Html.LabelFor(m => m.AddressLine1)%>
                        <%= Html.DisplayTextFor(m => m.AddressLine1) %>
                    </div>
                    <div class="clearfix">
                        <%= Html.LabelFor(m => m.AddressLine2)%>
                        <%= Html.DisplayTextFor(m => m.AddressLine2)%>
                    </div>
                    <div class="clearfix">
                        <%= Html.LabelFor(m => m.Town)%>
                        <%= Html.DisplayTextFor(m => m.Town)%>
                    </div>
                    <div class="clearfix">
                        <%= Html.LabelFor(m => m.County)%>
                        <%= Html.DisplayTextFor(m => m.County)%>
                    </div>
                    <div class="clearfix">
                        <%= Html.LabelFor(m => m.PostCode)%>
                        <%= Html.DisplayTextFor(m => m.PostCode)%>
                    </div>
                    <div class="clearfix">
                        <%= Html.LabelFor(m => m.Country)%>
                        <%= Html.DisplayTextFor(m => m.Country)%>
                    </div>
                </div>
            </div><%--<<<pane1--%>
            <div class="pane">
                <div class="formRegion">
                    <div class="clearfix">
                        <%--SOURCES--%>
                        <%= Html.LabelFor(m => m.Source)%>
                        <%= Html.DisplayTextFor(m => m.Source)%>
                    </div>
                    <div class="clearfix">
                        <%--SOURCES--%>
                        <%= Html.LabelFor(m => m.Retailer)%>
                        <%= Html.DisplayTextFor(m => m.Retailer)%>
                    </div>
                    
                    <%--DATE--%>
                    <div class="clearfix">
                        <%= Html.LabelFor(m => m.EnquiryDate)%>
                        <%--<%= Html.DisplayTextFor(m => m.EnquiryDate)%>--%>
                        
                            <%= Html.Encode(Model.EnquiryDate.ToString("dd/MM/yyyy"))%>
                        
                    </div>
                                
                    <%--PRIORITY--%>
                    <div class="clearfix">
                        <%= Html.LabelFor(m => m.Priority)%>
                        <%= Html.DisplayTextFor(m => m.Priority) %>
                        
                    </div>
                </div>     
                <div id="drilldowns" class="formRegion">
                    <% Html.RenderPartial("Partial/DrillDown", new SpotlessWeb.Models.QueryDrillDownViewModel() { AllowEdit = false, Query = Model, DrillDowns = new DrillDown[0] }); %>
                    
                    <div class="clearfix">
                        <%= Html.LabelFor(m => m.BatchCode)%>
                        <%= Html.DisplayTextFor(m => m.BatchCode) %>
                    </div>
                    
                    <%--WMManufacturr--%>
                    <div class="clearfix">
                        <%= Html.LabelFor(m=>m.WmManufacturere)%>
                        <%= Html.DisplayTextFor(m => m.WmManufacturere)%>
                    </div>
                    <%--WMManufacturr--%>
                    <div class="clearfix">
                        <%= Html.LabelFor(m=>m.WmModel)%>
                        <%= Html.DisplayTextFor(m => m.WmModel)%>
                    </div>
                </div>
            </div><%--<<<pane2--%>
                
            <div class="pane">
                <div class="formRegion">
                    <div class="clearfix">
                        <%--STATUS--%>
                        <%= Html.LabelFor(m => m.Status)%>
                        <%= Html.DisplayTextFor(m => m.Status)%>
                    </div>
                    
                    <div class="clearfix">
                        <%--METHOD--%>
                        <%= Html.LabelFor(m => m.Method)%>
                        <%= Html.DisplayTextFor(m => m.Method)%>
                    </div>
                    <div class="clearfix">
                        <%--PAYMENT--%>
                        <%= Html.LabelFor(m => m.PaymentType)%>
                        <%= Html.DisplayTextFor(m => m.PaymentType)%>
                    </div>
                    <div class="clearfix">
                        <%--AMOUNT--%>
                            <%= Html.LabelFor(m => m.Amount)%>
                            <%= Html.DisplayTextFor(m => m.Amount)%>
                    </div>
                </div>
            </div><%--<<<pane3--%>
        </div><%--<<<panes--%>
        <div class="formRegion">
                    <div class="clearfix">
                        <%--FREETEXT--%>
                        <%= Html.Label("FreeTextArea")%>
                        <%= Html.DisplayTextFor(m=>m.FreeTextArea)%>
                    </div>
                </div>
<% } %>



</asp:Content>
